import Vue from 'vue'
import app from './App.vue'
import './lib/mui/css/mui.min.css'
import 'mint-ui/lib/style.css';
import './lib/mui/css/icons-extra.css'
//1.1 导入路由
import VueRouter from 'vue-router'
//1.2安装路由
Vue.use(VueRouter)

import mint from 'mint-ui';
Vue.use(mint)

//定义全局过滤器
Vue.filter('dateFormat',function (dataStr,pattern="YYYY-MM-DD HH:mm:ss") {
  return moment(dataStr).format(pattern)
})

// 格式化时间插件 moment
import moment from 'moment'

import router from './router.js'
// Vue.component(Header.name,Header)
var vm = new Vue({
  el:'#app',  
  render:c=>c(app),
  //1.4挂载路由对象到vm实例上
  router
})